<?php
include("../../classes/bd.php");
$idcat		= $_GET["id"];
$sql 		= mysql_query("DELETE FROM links_categoria WHERE id = '".$idcat."'");
$sqllinks 	= mysql_query("DELETE FROM links WHERE categoria 	= '".$idcat."'");

if($sql){
echo "1";
}else{
echo mysql_error();
}

?>

